-- GENERATED SPELL FOR [Arcano-Scorp] --


function spell0_21909(pUnit, Event) --@Arcano-dismantle,n/a--
pUnit:FullCastSpellOnTarget(37919,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21909', 6270, 1)
end

function spell1_21909(pUnit, Event) --@Arcano-pince,n/a--
pUnit:FullCastSpellOnTarget(37918,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21909', 500, 1)
end

function spell2_21909(pUnit, Event) --@Tag Greater Felfire Diemetradon,n/a--
pUnit:FullCastSpellOnTarget(37851,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21909', 500, 1)
end

function Sorts_21909(pUnit, Event)
local choix_sorts_21909 = math.random(0, 2)
if choix_sorts_21909 == 0 then
pUnit:RegisterEvent('spell0_21909', 1, 1)
end
if choix_sorts_21909 == 1 then
pUnit:RegisterEvent('spell1_21909', 1, 1)
end
if choix_sorts_21909 == 2 then
pUnit:RegisterEvent('spell2_21909', 1, 1)
end
end

function mob21909_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21909', math.random(1500, 3000), 1)
end

function mob21909_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21909_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21909_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21909, 1, 'mob21909_Action')
RegisterUnitEvent(21909, 2, 'mob21909_Leave')
RegisterUnitEvent(21909, 3, 'mob21909_Kill')
RegisterUnitEvent(21909, 4, 'mob21909_Die')
